#ifndef __AS_SCREEN_SHARE__H__
#define __AS_SCREEN_SHARE__H__

#include "ASScreen.h"
#include "..\control\ASImage.h"
#include "..\control\ASButton.h"
#include "..\control\ASLabel.h"
#include "..\control\ASAdvbar.h"

void as_screen_create_topbar(as_screen* screen_p, as_rect area, ASSTR text, ASSTR img);
as_image* as_screen_create_bar_img(as_screen* screen_p, as_rect area, ASSTR img);
void as_screen_create_title_bar(as_screen* screen_p, as_rect area, ASSTR img_bg, ASSTR img_title);
as_label* as_screen_create_subtitle_bar(as_screen* screen_p, as_rect area, ASWSTR text,
                                        as_void_func left, as_void_func right);
as_button* as_screen_create_lsk(as_screen* screen_p, as_rect area, ASSTR text, as_button_cb cb);
as_button* as_screen_create_csk(as_screen* screen_p, as_rect area, ASSTR text, as_button_cb cb);
as_button* as_screen_create_rsk(as_screen* screen_p, as_rect area, ASSTR text, as_button_cb cb);
void as_screen_go_back(void);
void as_screen_go_back_nodraw(void);
void as_exit_app(void);
void as_small_screen_to_full_screen(as_screen_type type);
as_screen_type as_get_cur_screen_type(void);
as_screen_type as_get_last_screen_type(void);
as_button* as_screen_create_img_btn(as_screen* screen_p, as_rect area, ASSTR u_path, ASSTR d_path, as_button_cb cb);
as_label* as_screen_create_label(as_screen* screen_p, as_rect area, ASSTR text, ASUINT color, ASBOOL if_small);
ASINT as_screen_get_str_height(ASBOOL if_small);
void as_screen_create_softbtn(as_screen* screen_p, as_rect area,
                              ASWSTR text, as_button** button_pp);

as_advbar* as_screen_add_advbar(as_screen* screen_p, as_rect area);
void as_screen_hide_adv_bar(void);
void as_screen_show_adv_bar(void);
#endif//__AS_SCREEN_SHARE__H__